scriptencoding utf-8
" <%- scheme %>Dark (https://github.com/atelierbram/Base2Tone-vim/tree/master/autoload/airline/themes)
" Scheme: <%- author %>

let g:airline#themes#<%- scheme %>Dark#palette = {}

let s:N1   = [ '#<%- base["06"]["hex"] %>' , '#<%- base["02"]["hex"] %>' , <%- base["T6"]["hex"] %>, <%- base["T2"]["hex"] %>]
let s:N2   = [ '#<%- base["06"]["hex"] %>' , '#<%- base["00"]["hex"] %>' , <%- base["T6"]["hex"] %>, <%- base["T0"]["hex"] %>]
let s:N3   = [ '#<%- base["0C"]["hex"] %>' , '#<%- base["01"]["hex"] %>' , <%- base["TC"]["hex"] %>, <%- base["T1"]["hex"] %>]
let g:airline#themes#<%- scheme %>Dark#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)

let g:airline#themes#<%- scheme %>Dark#palette.normal_modified = {
      \ 'airline_c': [ '#<%- base["08"]["hex"] %>' , '#<%- base["06"]["hex"] %>' , <%- base["T8"]["hex"] %>, <%- base["T7"]["hex"] %>, ''     ] ,
      \ }

let s:I1 = [ '#<%- base["07"]["hex"] %>' , '#<%- base["0C"]["hex"] %>' , <%- base["T7"]["hex"] %>, <%- base["TC"]["hex"] %>]
let s:I2 = [ '#<%- base["07"]["hex"] %>' , '#<%- base["0E"]["hex"] %>' , <%- base["T7"]["hex"] %>, <%- base["TE"]["hex"] %>]
let s:I3 = [ '#<%- base["0C"]["hex"] %>' , '#<%- base["01"]["hex"] %>' , <%- base["TC"]["hex"] %>, <%- base["T1"]["hex"] %>]
let g:airline#themes#<%- scheme %>Dark#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
let g:airline#themes#<%- scheme %>Dark#palette.insert_modified = {
      \ 'airline_c': [ '#<%- base["08"]["hex"] %>' , '#<%- base["06"]["hex"] %>' , <%- base["T8"]["hex"] %>, <%- base["T7"]["hex"] %>, ''     ] ,
      \ }
let g:airline#themes#<%- scheme %>Dark#palette.insert_paste = {
      \ 'airline_a': [ s:I1[0]   , '#<%- base["0D"]["hex"] %>' , s:I1[2] ,<%- base["TD"]["hex"] %>, ''     ] ,
      \ }

let g:airline#themes#<%- scheme %>Dark#palette.replace = copy(g:airline#themes#<%- scheme %>Dark#palette.insert)
let g:airline#themes#<%- scheme %>Dark#palette.replace.airline_a = [ s:I2[0]   , '#<%- base["0E"]["hex"] %>' , s:I2[2] ,<%- base["TE"]["hex"] %>, ''     ]
let g:airline#themes#<%- scheme %>Dark#palette.replace_modified = g:airline#themes#<%- scheme %>Dark#palette.insert_modified

let s:V1 = [ '#<%- base["07"]["hex"] %>' , '#<%- base["0E"]["hex"] %>' , <%- base["T7"]["hex"] %>, <%- base["TE"]["hex"] %>]
let s:V2 = [ '#<%- base["07"]["hex"] %>' , '#<%- base["0C"]["hex"] %>' , <%- base["T7"]["hex"] %>, <%- base["TC"]["hex"] %>]
let s:V3 = [ '#<%- base["0C"]["hex"] %>' , '#<%- base["01"]["hex"] %>' , <%- base["TC"]["hex"] %>, <%- base["T1"]["hex"] %>]
let g:airline#themes#<%- scheme %>Dark#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
let g:airline#themes#<%- scheme %>Dark#palette.visual_modified = {
      \ 'airline_c': [ '#<%- base["08"]["hex"] %>' , '#<%- base["06"]["hex"] %>' , <%- base["T8"]["hex"] %>, <%- base["T7"]["hex"] %>, ''     ] ,
      \ }

let s:IA1 = [ '#<%- base["02"]["hex"] %>' , '#<%- base["00"]["hex"] %>' , <%- base["T2"]["hex"] %>, <%- base["T0"]["hex"] %>, '' ]
let s:IA2 = [ '#<%- base["02"]["hex"] %>' , '#<%- base["00"]["hex"] %>' , <%- base["T2"]["hex"] %>, <%- base["T0"]["hex"] %>, '' ]
let s:IA3 = [ '#<%- base["02"]["hex"] %>' , '#<%- base["00"]["hex"] %>' , <%- base["T2"]["hex"] %>, <%- base["T0"]["hex"] %>, '' ]
let g:airline#themes#<%- scheme %>Dark#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3)
let g:airline#themes#<%- scheme %>Dark#palette.inactive_modified = {
      \ 'airline_c': [ '#<%- base["00"]["hex"] %>' , '#<%- base["04"]["hex"] %>' , <%- base["T0"]["hex"] %>, <%- base["T4"]["hex"] %>, ''     ] ,
      \ }

let g:airline#themes#<%- scheme %>Dark#palette.accents = {
      \ 'red': [ '#<%- base["0E"]["hex"] %>' , '' ,<%- base["TE"]["hex"] %>, ''  ]
      \ }

if !get(g:, 'loaded_ctrlp', 0)
  finish
endif
let g:airline#themes#<%- scheme %>Dark#palette.ctrlp = airline#extensions#ctrlp#generate_color_map(
      \ [ '#<%- base["06"]["hex"] %>' , '#<%- base["0E"]["hex"] %>' , <%- base["T6"]["hex"] %>, <%- base["TE"]["hex"] %>, ''     ],
      \ [ '#<%- base["07"]["hex"] %>' , '#<%- base["0E"]["hex"] %>' , <%- base["T7"]["hex"] %>, <%- base["TE"]["hex"] %>, ''     ],
      \ [ '#<%- base["0E"]["hex"] %>' , '#<%- base["07"]["hex"] %>' , <%- base["TE"]["hex"] %>, <%- base["T7"]["hex"] %>, 'bold' ])
